package com.cathyjava.crawl.controller;

import com.cathyjava.crawl.service.SysMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author chenjing
 * @date 2021/4/20
 * @description layuimini参考：http://layuimini.99php.cn/docs/init/java.html
 */
@RestController
@RequestMapping("/common")
public class CommonController {
    @Resource
    private SysMenuService sysMenuService;

    @GetMapping("/menu")
    public Map<String, Object> menu() {
        return sysMenuService.menu();
    }
}
